package com.kfm.pm;

public class Student {

    String name;
    int math;
    int chinese;
    int english;

    int sum;

    public Student(String name, int math, int chinese, int english) {
        this.name = name;
        this.math = math;
        this.chinese = chinese;
        this.english = english;
        this.sum = math + chinese + english;
    }

    public String info() {
        return this.name + ": { math: " + this.math + ", chinese: " + this.chinese + ", english: " + this.english + "}";
    }
}
